//
//  TextTableViewCell.swift
//  约健
//
//  Created by tyh on 2017/10/2.
//  Copyright © 2017年 tyh. All rights reserved.
//

import UIKit

class TextTableViewCell: UITableViewCell {
    var TextName:UILabel!
    var TextContent:UITextView!
    let radio:CGFloat = 0.1

    override func awakeFromNib() {
        super.awakeFromNib()
    
        TextName = UILabel()
        TextName.font = UIFont.systemFont(ofSize: 16)
        TextName.textColor = UIColor.darkGray
        self.contentView.addSubview(TextName)
        
        TextContent = UITextView()
        TextContent.font = UIFont.systemFont(ofSize: 15)
        TextContent.textColor = UIColor.darkGray
        TextContent.isEditable = false
        self.contentView.addSubview(TextContent)
        
        
        // Initialization code
    }
    override func layoutSubviews() {
        super.layoutSubviews()
        TextContent.frame = CGRect(x: 3, y: 6+height*radio*0.25, width: width - 6, height: height*radio*0.75 - 9)
        
        TextName.frame = CGRect(x: 3, y: 6, width: width - 6, height: height*radio*0.25)
    }

    override func setSelected(_ selected: Bool, animated: Bool) {
        super.setSelected(selected, animated: animated)
        
        
    }

}
